package com.swh.xbsc.controller;

import com.swh.xbsc.entity.Article;
import com.swh.xbsc.entity.Collection;
import com.swh.xbsc.entity.Result;
import com.swh.xbsc.service.ArticleService;
import com.swh.xbsc.service.CollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import java.util.Date;
import java.util.Map;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/11/17 20:49
 * @Version: 1.0
 */
@RestController
@RequestMapping("/mapper/Collection")
public class CollectionController {

    @Autowired
    CollectionService service;


    @RequestMapping(value = "insert",method = RequestMethod.POST)
    public Result insert(@RequestBody Collection collection){
        return new Result(service.insertSelective(collection));
    }



}
